<template>
  <div class="css-tools-root">
    <h2 class="title">
      <span>这是一条会动的下划线，真的呦~~~~~~~~</span>
    </h2>
  </div>
</template>

<script>
export default {
  name: 'CssTools'
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
  .title span {
    background: linear-gradient(85deg, #f40, #61c454) no-repeat right bottom;
    background-size: 0 2px;
    transition: background-size 1300ms;
  }
  .title span:hover {
    background-position-x: left;
    background-size: 100% 2px;
  }
</style>
